package com.woniu.stafforder.controller;

import com.woniu.common.util.ResponseData;
import com.woniu.stafforder.service.OrderServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderServiceController {
    @Autowired
    private OrderServiceService orderService;
    @GetMapping("/queryServiceByTypeId/{sourceId}")
    public ResponseData<?> queryServiceByTypeId(@PathVariable("sourceId") Integer sourceId) {
        return orderService.queryServiceByTypeId(sourceId);
    }
}